/*
 * Copyright(C) 2013-2017 AZ ALL Rights Reserved.
 *
 * FileName: HashTest
 * 
 * Description: xxxxx
 *
 * History:
 * 版本号                作者      日期      操作
 * 1.0       ZhouFan             2017/10/16 0016   
 *  
 */
package com.az.shiro.ice.action;

import org.apache.shiro.crypto.hash.Md5Hash;
import org.apache.shiro.crypto.hash.SimpleHash;

/**
 * @author ZhouFan
 * @version 1.0
 * @date 2017/10/16 0016
 * @see
 */
public class HashTest {
    public static void main(String[] args) {
        Md5Hash hash = new Md5Hash("123456","745c7cf40bebad1287bd8ae1d8b187bf",2);

        //String str = Md5Hash.Util.bytes("123456");

        System.out.println(hash.toHex());

        SimpleHash simpleHash = new SimpleHash("md5","123456","745c7cf40bebad1287bd8ae1d8b187bf",2);

        System.out.println(simpleHash.toHex());
    }
}

 